import http from '../utils/quest'

export const getorder = () => http.post('/order/get_order')

export const getvipcz =(category_id)=>http.get('/product/get_product',{
    params:{
        category_id:'20210827165510715'
    }
})

export const chongzhi = (product_id,quantity) =>http.post('/order/pre_order',{
    product_id,
    quantity
})

export const yuzhifu =(product_id,category_id)=>http.get('/product/get_product',{
    params:{
        product_id,
        category_id
    }
})

// 下单
export const xiadan = (product_id,quantity) =>http.post('/order/pre_order',{
    product_id,
    quantity
})


// 获取订单详情
export const hqddxq = order_id => http.post('/order/get_order',{order_id})

// 请求支付地址
export const fqpay = order_id =>http.post('/pay/payment',{order_id})

// 查询订单支付状态
export const thisddzt = order_id => http.get('/order/query_order_status',{
    params:{
        order_id
    }
})